package com.hqyj.springBoot.modules.test.service;

import com.github.pagehelper.PageInfo;
import com.hqyj.springBoot.modules.common.entity.ResultEntity;
import com.hqyj.springBoot.modules.common.entity.SearchBean;
import com.hqyj.springBoot.modules.test.entity.City;

import java.util.List;

public interface CityService {

    ResultEntity<City> insertCity(City city);

    ResultEntity<City> updateCity(City city);

    ResultEntity<Object> deleteCity(int cityId);

    City getCityByCityId(int cityId);

    List<City> getCityByCountryId(int countryId);

    PageInfo<City> getCityBySearchBean(SearchBean searchBean);
}
